﻿using FluentValidation;
using Sgr.UPMS.Application.Commands.Organizations;

namespace Sgr.UPMS.Application.Validations.Organizations
{
    /// <summary>
    /// 验证 DeleteOrgInvitationCommand 的规则
    /// </summary>
    public class DeleteOrgInvitationCommandValidator : AbstractValidator<DeleteOrgInvitationCommand>
    {
        public DeleteOrgInvitationCommandValidator()
        {
            RuleFor(x => x.InvitationId)
                .GreaterThan(0)
                .WithMessage("邀请码标识必须大于0");
        }
    }
}